package com.bba.manager.common.model.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author zzy
 * @since 2025-08-12
 */
@Getter
@Setter
@TableName(value = "`order`")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单编号
     */
      @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 顾客编号
     */
    @TableField("customer_id")
    private Long customerId;

    /**
     * 负责员工编号
     */
    @TableField("employee_id")
    private Integer employeeId;

    /**
     * 订单总金额
     */
    @TableField("total_price")
    private BigDecimal totalPrice;

    /**
     * 订单状态（0：未支付，1：已支付，2：已取消）
     */
    @TableField("status")
    private String status;

    /**
     * 订单创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 订单支付时间
     */
    @TableField("pay_time")
    private LocalDateTime payTime;

    /**
     * 订单更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;
}
